import {
  Injectable,
  Inject,
} from "@nestjs/common";

export class LoggerClassService {
  constructor() { }
  log() {
    console.log('LoggerClassService log 类提供者')
}
}

@Injectable()
export class LoggerService {
  constructor( ) { }
  log() {
    console.log('LoggerService log 类提供者')
  }
}

export class UseValueService {
  log() {
    console.log('UseValueService log 值提供者')
  }
}

export class UseFactory {
  constructor(private prefix1: string, private prefix2: UseValueService) { }

  log() {
    console.log(`UseFactory log ${this.prefix1} ${this.prefix2} 值提供者`)
  }
}